package com.ys.entity.block.btc;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ys.entity.block.Transaction;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 比特币交易信息 详情
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@NoArgsConstructor
@AllArgsConstructor
public class BtcTransation extends Transaction {

    private double amount;

    private int confirmations;

    private String blockhash;

    private int blockindex;

    private int blocktime;

    private String txid;

    private String fee;

    private int time;

    private int timereceived;
    private List<String> walletconflicts;


    private List<Details> details ;

    private String hex;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @JsonIgnoreProperties(ignoreUnknown = true)
    static class Details {
        private String account;

        private String address;

        private String category;

        private double amount;

        private String label;

        private int vout;
        private String fee;
    }
}
